
package com.chengyu.eyc.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import com.chengyu.eyc.utils.EycGenId;

import tk.mybatis.mapper.annotation.KeySql;

@Table(name = "eyc_insp_price_rule")
public class EycInspPriceRule extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;
    @KeySql(genId = EycGenId.class)
    @Id
    @Column(name = "INSP_PRICE_RULE_ID")
    private String inspPriceRuleId;
    
    /**
     * 规则名称
     */
    @Column(name = "PRICE_RULE_NME")
    private String priceRuleNme;

    /**
     * 安检价格
     */
    @Column(name = "SAFETY_INSP_RATE")
    private Integer safetyInspRate;

    /**
     * 综检价格
     */
    @Column(name = "COMP_INSP_RATE")
    private Integer compInspRate;

    /**
     * 环保价格
     */
    @Column(name = "EP_INSP_RATE")
    private Integer epInspRate;

    /**
     * 优惠价格
     */
    @Column(name = "PREFERENTIAL_PRICE")
    private Integer preferentialPrice;

    /**
     * 失效标志
     */
    @Column(name = "IS_ACTIVE")
    private Boolean isActive;
    
    /**
     * 获取综检价格
     *
     * @return COMP_INSP_RATE - 综检价格
     */
    public Integer getCompInspRate() {
        return compInspRate;
    }

    /**
     * 获取环保价格
     *
     * @return EP_INSP_RATE - 环保价格
     */
    public Integer getEpInspRate() {
        return epInspRate;
    }


    /**
     * @return INSP_PRICE_RULE_ID
     */
    public String getInspPriceRuleId() {
        return inspPriceRuleId;
    }

    /**
     * 获取失效标志
     *
     * @return IS_ACTIVE - 失效标志
     */
    public Boolean getIsActive() {
        return isActive;
    }

    /**
     * 获取优惠价格
     *
     * @return PREFERENTIAL_PRICE - 优惠价格
     */
    public Integer getPreferentialPrice() {
        return preferentialPrice;
    }

    /**
     * 获取规则名称
     *
     * @return PRICE_RULE_NME - 规则名称
     */
    public String getPriceRuleNme() {
        return priceRuleNme;
    }

    /**
     * 获取安检价格
     *
     * @return SAFETY_INSP_RATE - 安检价格
     */
    public Integer getSafetyInspRate() {
        return safetyInspRate;
    }

    /**
     * 设置综检价格
     *
     * @param compInspRate 综检价格
     */
    public void setCompInspRate(Integer compInspRate) {
        this.compInspRate = compInspRate;
    }

    /**
     * 设置环保价格
     *
     * @param epInspRate 环保价格
     */
    public void setEpInspRate(Integer epInspRate) {
        this.epInspRate = epInspRate;
    }

    /**
     * @param inspPriceRuleId
     */
    public void setInspPriceRuleId(String inspPriceRuleId) {
        this.inspPriceRuleId = inspPriceRuleId == null ? null : inspPriceRuleId.trim();
    }

    /**
     * 设置失效标志
     *
     * @param isActive 失效标志
     */
    public void setIsActive(Boolean isActive) {
        this.isActive = isActive;
    }

    /**
     * 设置优惠价格
     *
     * @param preferentialPrice 优惠价格
     */
    public void setPreferentialPrice(Integer preferentialPrice) {
        this.preferentialPrice = preferentialPrice;
    }

    /**
     * 设置规则名称
     *
     * @param priceRuleNme 规则名称
     */
    public void setPriceRuleNme(String priceRuleNme) {
        this.priceRuleNme = priceRuleNme == null ? null : priceRuleNme.trim();
    }

    /**
     * 设置安检价格
     *
     * @param safetyInspRate 安检价格
     */
    public void setSafetyInspRate(Integer safetyInspRate) {
        this.safetyInspRate = safetyInspRate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", inspPriceRuleId=").append(inspPriceRuleId);
        sb.append(", priceRuleNme=").append(priceRuleNme);
        sb.append(", safetyInspRate=").append(safetyInspRate);
        sb.append(", compInspRate=").append(compInspRate);
        sb.append(", epInspRate=").append(epInspRate);
        sb.append(", preferentialPrice=").append(preferentialPrice);
        sb.append(", isActive=").append(isActive);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}